<template>
    <el-main>
        <el-main class="ep-body">
			<epl-top-bar :datas="{formData:form,panel:panel}" showPerson personType="PERSON_INJURY_CB" psTagType="PERSON_AAB001_GROUP">
                        <!-- showCompany companyType="COMPANY_AAB000_EXACT" cpTagType="COMPANY_SIMPLE_GROUP" -->
                        
                <ep-button size="small" name="刷新"></ep-button>
            </epl-top-bar>

            <el-row :gutter="10">
                <epl-userGeneral dataType="person" idCount="10" :panel="panel">
                </epl-userGeneral>
                <epl-userGeneral dataType="company" idCount="2" :panel="panel">
                </epl-userGeneral>
            </el-row>
 			<el-card class="ep-card">
                <el-form :model="form" ref="form" :rules="rules">
                <ep-title>请输入事故申报信息</ep-title> 
                    <el-row :gutter="20">
                        <ep-input colspan="16" label="人员编码" name="aac001" :property="form.aac001" placeholder=""
                                  p="H" :datas="{formData:form}" ></ep-input>
                        
				  </el-row>   
				    <el-row :gutter="10">
                                <ep-select colspan="8" label="事故地点" name="bae011" :property="form.bae011"
                                            placeholder="请选择省" codetype="BAE007" p="R"  :datas="{formData:form}" isChange isCodeType></ep-select>
                                <ep-select colspan="4" label="" label-width="0" name="bae012" :property="form.bae012"
                                            placeholder="请选择市" codetype="BAE008" p="R" :datas="{formData: form}" isChange isCodeType
                                            SelectFilterData=" aaa102 like substr(':bae011',0,2)||'%' and aaa102 like '%00' "></ep-select>
                                <ep-select colspan="4" label="" label-width="0" name="bae013" :property="form.bae013" 
                                            placeholder="请选择区县" codetype="BAE009" p="R" :datas="{formData: form}"
                                            SelectFilterData=" aaa102 like substr(':bae012',0,4)||'%'" ></ep-select>
                                <ep-input colspan="8" label="" label-width="0" name="blb003" :property="form.blb003"
                                            placeholder="请输入详细地址" p="R" :datas="{formData:form}"></ep-input>
                    </el-row>
                   <el-row :gutter="20">
                        <ep-textarea colspan="24" label="事故经过" name="alc006" :property="form.alc006" placeholder="请输入事故经过"
                                  p="R" :datas="{formData:form}" rows="3"  ></ep-textarea>
                    </el-row>
					<el-row :gutter="20">
					   <epl-new-date colspan="8" label="事故时间"  name="alc020" :property="form.alc020" placeholder="请选择事故时间" 
                                  p="R" :datas="{formData:form}" type="datetime" format="yyyy-MM-dd HH:mm" value-format="yyyy-MM-dd HH:mm" rules="this.$rules.test_time"  ></epl-new-date>
                       <ep-select colspan="8" label="受伤部位" name="alc022" :property="form.alc022" placeholder="请选择受伤部位"
                                 p="R" :datas="{formData:form}" codetype="ALC022"  ></ep-select>
					  <ep-select colspan="8" label="医疗诊断机构" name="alc007" :property="form.alc007" placeholder="请选择医疗诊断机构"
                                 p="E" :datas="{formData:form}" codetype="ALC007"  ></ep-select>
				   </el-row>    
                    <el-row :gutter="20">
					<ep-textarea colspan="24" label="医疗救治的基本情况" name="blc508" :property="form.blc508" placeholder="请输入医疗救治的基本情况"
                                  p="E" :datas="{formData:form}" rows="3"></ep-textarea>
					</el-row>
					<el-row :gutter="20">
                       <ep-select colspan="8" label="是否有效" name="aae318" :property="form.aae318" placeholder="请选择是否有效"
                                 p="D" :datas="{formData:form}" codetype="AAE318" ></ep-select>
				    </el-row>   
					<el-row type="flex" justify="center">
                        <ep-saveButton id="doSave" type="primary" top="30" bottom="20" ref="save" @formValidate="formValidate"
                                       :validate="['form']"
                                       :datas="{formData: form,panel:panel}"></ep-saveButton>
                    </el-row>
                </el-form>
                </el-card>
        </el-main>
    </el-main>
</template>


<script src="../js/InjuryAccidentJS.js"></script>
